//
//  MMTextPreviewViewController.h
//  MemeMaker
//
//  Created by dangthan on 7/22/13.
//  Copyright (c) 2013 soyo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MMTextStyleViewController.h"
@class MMTextStyleModel;

@protocol MMTextPreviewDelegate <NSObject>
@optional
- (void) didApplyWithString:(NSString *)mText color:(UIColor *) mColor font:(UIFont *) mFont andAlign:(NSTextAlignment) mAlign;
@end

@interface MMTextPreviewViewController : UIViewController <UITextViewDelegate, MMTextStyleControllerDelegate>{
    NSTextAlignment _mTextAlignment;
    UIFont *_mFont;
    UIColor *_mColor;
    UITapGestureRecognizer *gesture;
    MMTextStyleModel *styleModel;
}
@property (weak, nonatomic) IBOutlet UITextView *txtPreview;

@property (nonatomic, assign) id<MMTextPreviewDelegate> delegate;

@end
